﻿<%@ Page Language="C#" MasterPageFile="~/ControlPanel/CPanel.master" AutoEventWireup="True"
    Codebehind="UserDetail.aspx.cs" Inherits="ControlPanel_Member_UserDetail" Title="用户详细资料"
    StylesheetTheme="MainStyle" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <br />
    <h3 style="text-align: center">
        <asp:Label ID="lbl_UserName" runat="server"></asp:Label>
        用户详细资料
    </h3>
    <br />
    <div>
        <atlas:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table align="center">
                    <tr>
                        <td>
                            <asp:Menu ID="Menu1" runat="server" BackColor="White" DynamicHorizontalOffset="2"
                                Font-Names="Verdana" Font-Size="12px" ForeColor="Black" StaticSubMenuIndent="10px"
                                Orientation="Horizontal" OnMenuItemClick="Menu1_MenuItemClick" BorderColor="Black"
                                BorderWidth="0px">
                                <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BorderColor="LightGray"
                                    BorderStyle="Outset" BorderWidth="1px" />
                                <StaticSelectedStyle BackColor="CornflowerBlue" ForeColor="White" />
                                <StaticHoverStyle BackColor="#8080FF" ForeColor="White" />
                                <StaticMenuStyle BorderColor="Black" BorderStyle="Outset" BorderWidth="0px" />
                                <Items>
                                    <asp:MenuItem Text="基本资料" Value="0" Selected="True"></asp:MenuItem>
                                    <asp:MenuItem Text="密码安全" Value="1"></asp:MenuItem>
                                    <asp:MenuItem Text="详细信息" Value="2"></asp:MenuItem>
                                    <asp:MenuItem Text="联系方式" Value="3"></asp:MenuItem>
                                    <asp:MenuItem Text="用户账户" Value="4"></asp:MenuItem>
                                </Items>
                            </asp:Menu>
                            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                                <asp:View ID="Tab1" runat="server">
                                    <div style="height: 250px; width: 600px; border: solid 1px #1C5E55; padding: 10px">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td style="width: 146px">
                                                    E-Mail:</td>
                                                <td style="width: 362px">
                                                    <asp:TextBox ID="txt_Email" runat="server"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td style="height: 22px; width: 146px;">
                                                    备注：</td>
                                                <td style="width: 362px; height: 22px;">
                                                    <asp:TextBox ID="txt_Comment" runat="server" Height="54px" TextMode="MultiLine" Width="280px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td style="height: 15px; width: 146px;">
                                                </td>
                                                <td style="width: 362px; height: 15px">
                                                    <asp:Label ID="lbl_ProviderUserKey" runat="server" Text=""></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 146px">
                                                    创建时间：</td>
                                                <td style="width: 362px">
                                                    <asp:Label ID="lbl_CreationDate" runat="server" Text=""></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 146px">
                                                    最后登陆时间：</td>
                                                <td style="width: 362px">
                                                    <asp:Label ID="lbl_LastLoginDate" runat="server" Text=""></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td style="height: 15px; width: 146px;">
                                                    最后在线时间：</td>
                                                <td style="width: 362px; height: 15px">
                                                    <asp:Label ID="lbl_LastActivityDate" runat="server" Text=""></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td style="height: 15px; width: 146px;">
                                                    最后密码更改时间：
                                                </td>
                                                <td style="width: 362px; height: 15px">
                                                    <asp:Label ID="lbl_LastPasswordChangedDate" runat="server" Text=""></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 14px; width: 146px;">
                                                </td>
                                                <td style="width: 362px; height: 14px">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 15px; width: 146px;">
                                                    员工状态：</td>
                                                <td style="width: 362px; height: 15px">
                                                    <asp:CheckBox ID="chk_IsApproved" Text="有效" runat="server" /><asp:CheckBox ID="chk_IsOnline"
                                                        Text="在线" runat="server" Enabled="False" />
                                                    <asp:Button ID="btn_IsLockOut" runat="server" Text="未锁定" Enabled="False" OnClick="btn_IsLockOut_Click" /></td>
                                            </tr>
                                        </table>
                                    </div>
                                </asp:View>
                                <asp:View ID="Tab2" runat="server">
                                    <div style="height: 250px; width: 600px; border: solid 1px #1C5E55; padding: 10px">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td style="width: 180px; height: 22px;">
                                                    原密码：</td>
                                                <td style="width: 362px; height: 22px;">
                                                    <asp:TextBox ID="txt_OldPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_OldPassword"
                                                        ErrorMessage="RequiredFieldValidator">必须输入原密码</asp:RequiredFieldValidator></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 22px;">
                                                    新密码：</td>
                                                <td style="width: 362px; height: 22px;">
                                                    <asp:TextBox ID="txt_NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 21px">
                                                </td>
                                                <td style="width: 362px; height: 21px">
                                                    <asp:Button ID="btn_SecUpdate" runat="server" Text="更新密码" OnClick="btn_SecUpdate_Click" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 22px">
                                                </td>
                                                <td style="width: 362px; height: 22px">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 22px;">
                                                    密码提示问题：</td>
                                                <td style="width: 362px; height: 22px;">
                                                    <asp:TextBox ID="txt_PasswordQuestion" runat="server"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td style="height: 22px; width: 180px;">
                                                    密码提示答案：</td>
                                                <td style="width: 362px; height: 22px;">
                                                    <asp:TextBox ID="txt_PasswordAnswer" runat="server"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 21px">
                                                    根据问题和答案重设密码：</td>
                                                <td style="width: 362px; height: 21px">
                                                    <asp:Button ID="btn_GenPassword" runat="server" Text="生成随机密码" OnClick="btn_GenPassword_Click" />
                                                    <asp:Label ID="lbl_GenPassword" runat="server"></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 22px">
                                                    根据原密码重设问题和答案：</td>
                                                <td style="width: 362px; height: 22px">
                                                    <asp:Button ID="btn_UpdateQA" runat="server" OnClick="btn_UpdateQA_Click" Text="重设问题答案" /></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 22px">
                                                    管理员重设密码:</td>
                                                <td style="width: 362px; height: 22px">
                                                    <asp:TextBox ID="txt_ForceNewPassword" runat="server"></asp:TextBox>
                                                    <asp:Button ID="btn_ForceResetPwd" runat="server" OnClick="btn_ForceResetPwd_Click"
                                                        CausesValidation="false" Text="强制重设" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 180px; height: 22px">
                                                    操作提示：</td>
                                                <td style="width: 362px; height: 22px">
                                                    <asp:Label ID="lbl_Tips" runat="server" ForeColor="Red"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                        <atlasToolkit:PasswordStrength ID="p1" runat="server" DisplayPosition="RightSide"
                                            TargetControlID="txt_NewPassword" StrengthIndicatorType="Text" PreferredPasswordLength="10"
                                            PrefixText="密码强度:" TextStrengthDescriptions="非常弱;弱;中等;强;很强" MinimumNumericCharacters="0"
                                            MinimumSymbolCharacters="0" RequiresUpperAndLowerCaseCharacters="false" />
                                        <atlasToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                                            TargetControlID="txt_PasswordAnswer" WatermarkText="输入正确答案才能重设密码" WatermarkCssClass="watermarked" />
                                    </div>
                                </asp:View>
                                <asp:View ID="Tab3" runat="server">
                                    <div style="height: 250px; width: 600px; border: solid 1px #1C5E55; padding: 10px">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 225px">
                                            <tr>
                                                <td style="height: 16px">
                                                    用户号码：</td>
                                                <td style="height: 16px">
                                                    &nbsp;<asp:Label ID="lbl_UserNo" runat="server" Text=""></asp:Label></td>
                                                <td style="height: 16px">
                                                    &nbsp;
                                                </td>
                                                <td style="height: 16px">
                                                    <asp:RadioButtonList ID="rbl_Sex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                        <asp:ListItem Value="true">先生</asp:ListItem>
                                                        <asp:ListItem Value="false">女士</asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    昵称：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_NickName" runat="server"></asp:TextBox></td>
                                                <td>
                                                    真实姓名：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_TrueName" runat="server"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    身份证：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_IdCard" runat="server"></asp:TextBox></td>
                                                <td>
                                                    生日：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_BirthDay" runat="server"></asp:TextBox>
                                                    <atlas:UpdatePanel ID="UpdatePanel2" runat="server">
                                                        <ContentTemplate>
                                                            <center>
                                                                <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999"
                                                                    CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
                                                                    ForeColor="Black" Width="160px" OnSelectionChanged="Calendar1_SelectionChanged">
                                                                    <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                                                    <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                                                    <SelectorStyle BackColor="#CCCCCC" />
                                                                    <WeekendDayStyle BackColor="#FFFFCC" />
                                                                    <OtherMonthDayStyle ForeColor="#808080" />
                                                                    <NextPrevStyle VerticalAlign="Bottom" />
                                                                    <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                                                    <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                                                </asp:Calendar>
                                                            </center>
                                                        </ContentTemplate>
                                                    </atlas:UpdatePanel>
                                                    <atlasToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="txt_BirthDay"
                                                        PopupControlID="UpdatePanel2" Position="Bottom" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    专业：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Profession" runat="server"></asp:TextBox></td>
                                                <td>
                                                    兴趣爱好：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Interest" runat="server"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td style="height: 150px">
                                                    个性签名：<br />
                                                    <asp:CheckBox ID="chk_EnableSign" runat="server" Text="启用签名" /></td>
                                                <td style="height: 150px">
                                                    <asp:TextBox ID="txt_Sign" runat="server" Rows="8" TextMode="MultiLine"></asp:TextBox></td>
                                                <td width="12%" style="height: 150px">
                                                    头像：<br />
                                                    <asp:CheckBox ID="chk_EnableImage" runat="server" Text="启用头像" /></td>
                                                <td style="height: 150px">
                                                    <iframe frameborder="0" src="ImageUpload.aspx?Name=<%=lbl_UserName.Text%>" width="250"
                                                        height="150"></iframe>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </asp:View>
                                <asp:View ID="Tab4" runat="server">
                                    <div style="height: 250px; width: 600px; border: solid 1px #1C5E55; padding: 10px">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>
                                                    QQ 号：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_QQ" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    手机号码：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_MobilePhone" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    电话号码：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Telephone" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    传真：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Fax" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    个人Blog地址：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Blog" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="30%" style="height: 16px">
                                                    保密信箱：</td>
                                                <td width="59%" style="height: 16px">
                                                    <asp:TextBox ID="txt_PrivateEmail" runat="server"></asp:TextBox>
                                                    <asp:CheckBox ID="chk_EnableReviceEmail" runat="server" Text="启用保密信箱" /></td>
                                                <td width="5%" style="height: 16px">
                                                    &nbsp;
                                                </td>
                                                <td width="6%" style="height: 16px">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 23px">
                                                    国家：</td>
                                                <td style="height: 23px">
                                                    <asp:TextBox ID="txt_Country" runat="server"></asp:TextBox></td>
                                                <td style="height: 23px">
                                                    &nbsp;
                                                </td>
                                                <td style="height: 23px">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    省份：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Province" runat="server"></asp:TextBox></td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    城市：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_City" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 16px">
                                                    地址：</td>
                                                <td style="height: 16px">
                                                    <asp:TextBox ID="txt_Address" runat="server"></asp:TextBox></td>
                                                <td style="height: 16px">
                                                    &nbsp;
                                                </td>
                                                <td style="height: 16px">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    邮编：</td>
                                                <td>
                                                    <asp:TextBox ID="txt_Postcode" runat="server"></asp:TextBox></td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <atlasToolkit:FilteredTextBoxExtender TargetControlID="txt_QQ" FilterType="Numbers"
                                            ID="ftbeqq" runat="server">
                                        </atlasToolkit:FilteredTextBoxExtender>
                                        <atlasToolkit:FilteredTextBoxExtender TargetControlID="txt_PrivateEmail" FilterType="LowercaseLetters"
                                            ID="ftbemail" runat="server">
                                        </atlasToolkit:FilteredTextBoxExtender>
                                    </div>
                                </asp:View>
                                <asp:View ID="Tab5" runat="server">
                                    <div style="height: 250px; width: 600px; border: solid 1px #1C5E55; padding: 10px">
                                        账户余额 :
                                        <asp:TextBox ID="txt_Account" ReadOnly="true" runat="server"></asp:TextBox><br />
                                        账户变更明细：</div>
                                </asp:View>
                            </asp:MultiView>
                            <br />
                            <asp:Button ID="btn_Save" runat="server" Text="保存" OnClick="btn_Save_Click" />
                            <asp:Button ID="btn_Return" runat="server" OnClick="btn_Return_Click" Text="返回" CausesValidation="false" />
                            <asp:Label ID="lbl_SaveResult" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </atlas:UpdatePanel>
    </div>
</asp:Content>
